package com.company.card_service.model;

import com.baomidou.mybatisplus.annotation.*;

import java.util.Date;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 用户登陆记录表
 * </p>
 *
 * @author 赵志浩
 * @since 2022-09-15 04:15:07
 */
@Getter
@Setter
@TableName("user_login_log")
@ApiModel(value = "UserLoginLog对象", description = "用户登陆记录表")
public class UserLoginLog {

    @ApiModelProperty("id")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty("用户id")
    @TableField("user_id")
    private Long userId;

    @ApiModelProperty("登录ip")
    @TableField("ip")
    private String ip;

    @ApiModelProperty("登录城市")
    @TableField("city")
    private String city;

    @ApiModelProperty("创建时间")
      @TableField(value = "create_time", fill = FieldFill.INSERT)
    private Date createTime;

    @ApiModelProperty("更新时间")
    @TableField("update_time")
    private Date updateTime;

    @ApiModelProperty("登出时间")
    @TableField("logout_time")
    private Date logoutTime;

    @ApiModelProperty("删除标记（0:不可用 1:可用）")
    @TableField("is_deleted")
    @TableLogic
    private Integer isDeleted;


}
